public class Main {
    public static void main(String[] args) {
        Solution s = new Solution();
        int[] arr = {2,2,3,4};
        int num = s.triangleNumber(arr);
        System.out.println(num);
    }
}